// 引入mockjs
import Mock from 'mockjs'
// 引入数据
import trading from './trading.json'
import addTrading from './addTrading.json'
import shop from './shop.json'
import sales from './sales.json'
import addSales from './addSales.json'
import product from './product.json'
import userinfo from './userinfo.json'
import permissions2 from './permissions2.json'
import user from './user.json'
import userList from './userList.json'
// 创建虚拟交易展示数据接口
Mock.mock('/mock/trading',{code:200,trading})
// 创建虚拟交易新建数据接口
Mock.mock('/mock/addTrading',{code:200,addTrading})

Mock.mock('/mock/shop', { code: 200, shop })

Mock.mock('/mock/sales', { code: 200, sales })
Mock.mock('/mock/addSales',{code:200,addSales})

Mock.mock('/mock/product',{code:200,product})
Mock.mock('/mock/userinfo',{code:200,userinfo})
//权限路由  获取用户信息
Mock.mock('/mock/getInfo',{code:200,info:{permissions2,user,userList}})